# -*- codeing=utf-8 -*-
# @Time :2021/12/3 17:13
# @Author : 宦
# @File :converters.py
# @Software:PyCharm
from django.urls import converters

class UsernameConverter:
    regex='[a-zA-Z0-9_-]{5,20}'
    def to_python(self,value):
        return value